var express = require('express');
var router = express.Router();
var passport = require('passport')
var indexController = require('../controllers/indexController')
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index');
});
//地图1
router.get('/map', function(req, res, next) {
  indexController.getAllmap(req,res)
});
//查询地址1
router.get('/address', function(req, res, next) {
  indexController.getAlladdress(req,res)
});
//签到1
// router.post('/spin', passport.authenticate('jwt',{session:false}),function(req, res, next) {
//   indexController.getspinonce(req,res)
// });
module.exports = router;
